from turbogears import validators, widgets

from mnemoply import reports

class EndEducationReport(reports.RDSReport):
    name = _("End of education")
    tag = "EndEducation"
    report_type = reports.RDSReportType.WORD
    template_module = "mnemoply.templates.reports.end_education"

    fields = [
        widgets.TextField(name='order_id', label=_('Order #'),
            validator=validators.Int(not_empty=True)),
        widgets.TextField(name='preorder_id', label=_('Preorder #'),
            validator=validators.Int(not_empty=True)),
    ]

exposed = EndEducationReport()
